<?Php
	require_once('Model/getconfig.php');

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>adways.biz -  Kerala's largest site for listing business and personal details, directory</title>
<meta name="description" content="Search and find business/service near your home through a simple click. Refined locality wise search gives you immediate results. Send instant sms/email to the required business/service. Also access contact details for free. Post Your details: Add your business/service and maximize visibility ">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

-->
</style>

<link href="css/adways.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.style22 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #336600;
	font-weight: bold;
}
.style28 {font-variant: normal; text-transform: uppercase; text-align: left; font-style: normal; line-height: normal;}
</style>
</head>

<body>
<?php 
			//$data=trim($_REQUEST['data']);
            $data=trim($_REQUEST['textfield']);
?>
 <?php require_once('header.php') ?>

<div class="container2">
<div id="mainpage">
    <div id="leftbox">
      <div class="leftmenu">
        <table width="100%" height="86" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
          <tr>
            <td height="30" colspan="3" bgcolor="#FFFFFF" class="titile12pxblack">Refine Search by District</td>
          </tr>
          <tr>
          
          <?Php
	$count=0;
	$arrMenu=Model_listeddistrict::get_Listeddistrictvalue();
	foreach($arrMenu as $objMenu){ 
		$count=$count+1;
		$Buylisted=0;
		$District=$objMenu->getDistrict(); 
		$listed=$objMenu->getLlisted(); 
?>
            <td width="50%" height="27" bgcolor="#FFFFFF"><a  href="districtwise_list.php?VL=<?Php echo $District ?>" target="_parent" title="<?Php echo $District ?>" ><span class="districtcountlink">&nbsp;&nbsp;<?Php echo $District ?>
             (<?Php echo $listed ?>)</span></a></td>
          
<?Php
		  if($count%2==0){
?></tr><tr>
<?Php		}	  
		}
?>
     </tr>   </table>
      </div>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
    </div>
    <div id="centerbox">
      <div class="centercontent">
        <?Php
	$count=0;	
	$arrMenu=Model_membermaster::get_search($data);
	foreach($arrMenu as $objMenu){ 
		$count++;
		$pnid=$objMenu->getuserid();
		$username=$objMenu->getUsername();
		$Address=$objMenu->getAddress(); 
		$Firstname=$objMenu->getFirstname();
		$Details=$objMenu->getDetails();
		$Mobileno=$objMenu->getMobileno();	
		$Djoin=$objMenu->getDjoin();
		$email=$objMenu->getEmail();	
		$website=$objMenu->getWebsite();	
		$Businesstype=$objMenu->getBusinesstype();
		$Businesssubfield=$objMenu->getBusinesssubfield();
		$imagename="no-image.jpg";
	$arrMenuimage=Model_generalimage::get_GeneralImage($pnid);
	foreach($arrMenuimage as $objMenuimage){ 
		$count++;
		$imagename=$objMenuimage->getimagename();
	}		
?>
        <div align="center"> <img src="images/content.png" width="634" height="26" /></div>
        <table width="600" height="154" border="0" align="center" cellpadding="0" cellspacing="0" >
          <tr>
            <td width="503" height="154" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="28" class="searchtitile">Adways ID: <?Php echo $username ?></td>
              </tr>
              <tr>
                <td height="28" class="searchtitile"><?Php echo $Businesstype ?> [ <?Php echo $Businesssubfield ?> ]</td>
              </tr>
              <tr>
                <td><table width="100%" height="136" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="textdetails"><?Php echo $Details ?></td>
                  </tr>
                  <tr>
                    <td valign="bottom"><span class="list_address"><span class="style7">Name:</span></span> <span class="style22"><?Php echo $Firstname ?></span><span class="textdetails"><br />                      
                      <img src="images/address.jpg" width="16" height="16" />: <?Php echo $Address ?><br />                        
                      <img src="images/mobile.jpg" width="10" height="10" /> : <?Php echo $Mobileno ?></span><br />                          
                      <img src="images/email-icon.gif" width="16" height="16" /> : <span class="style7"><?Php echo $email ?></span><br />
						<span class="style7">Web</span><span class="textdetails"> : <a href="http://<?Php echo $website ?>/" target="_blank"><?Php echo $website ?></a></span></td>
                  </tr>
                  <tr>
                    <td><a href="details.php?VL=<?Php echo $pnid ?>" target="_parent" id="linkblinkblue" >View Details </a><span class="readtext">||</span> <a id="example2" href="enquiry.php">Send e-Mail</a></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
            <td width="196"><div align="center"><a id="example2" href="WebUploads/uploadedimages/<?Php echo $imagename ?>"><img alt="example2" src="WebUploads/uploadedimages/<?Php echo $imagename ?>"  width="113" height="113" border="1" style="border-color:#999999"/></a></div></td>
          </tr>
        </table>
        <div align="center"><img src="images/content_bottum.png" width="634" height="27" /></div>
        <?php	
	}
	if($count==0)
	{
?>
        <table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="29"><div align="center" class="norecords"><br />
              <br />
              <br />
              <br />
              <br />
            NO RECORDS FOUND </div></td>
          </tr>
        </table>
        <?Php
	}					
?>
        <br />
        <br />
      </div>

  </div>
</div>
<div id="footer"><div id="footermain">
  <div class="col">
    <h4>About us</h4>
    <p>&nbsp;</p>
</div>
  <div class="col">
    <h4>advertisement</h4>
    <p>&nbsp;</p>
</div>
  <div class="col">
    <h4>contactus</h4>
    <p>&nbsp;</p>
</div>
  <div class="col">
    <h4>faq</h4>
    <p>&nbsp;</p>
</div>
</div>
</div>
</div>
</body>
</html>
